import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:ws2812_time/command/config.dart';
import 'package:ws2812_time/view/home/view.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: "LED时钟",
      home: HomePage(),
      onInit: () {
        Config.initConfig();
      },
      theme: ThemeData.light(),
      darkTheme: ThemeData.dark(),
    );
  }
}
